package com.didi.gulimall.api;

import com.didi.gulimall.api.impl.ThirdPartyApiServiceImpl;
import com.didi.gulimall.common.utils.R;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 10626
 */
@FeignClient(value = "gulimall-third-party",fallback = ThirdPartyApiServiceImpl.class)
public interface ThirdPartyApiService {

    @GetMapping("sms/sendcode")
    public R sendCode(
            @RequestParam("phone") String phone,
            @RequestParam("code") String code);
}
